//
//  ZYTimerProxy.m
//  OC_Principle
//
//  Created by wangzhipan on 2025/2/18.
//

#import "ZYTimerProxy.h"

@interface ZYTimerProxy()
@property (nonatomic, weak) id target;
@end

@implementation ZYTimerProxy

- (instancetype)initWithTarget:(id)target
{
    if (self = [super init]) {
        self.target = target;
    }
    return self;
}

//利用消息转发机制，将方法转发到对应的target
- (id)forwardingTargetForSelector:(SEL)aSelector
{
    return self.target;
}
@end
